<?php

use App\Model\System\User;
use Illuminate\Database\Seeder;
use Illuminate\Database\Eloquent\Model;

class UserTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {

        Model::unguard();

        $admin = ['userid'=>1, 'type'=>1, 'account' => 'admin', 'email' => 'admin@your.site',  'number' => '123456'];
        $admin['password'] = User::getSecurityCode('123456');
        User::create($admin);

        Model::reguard();
    }
}
